<html>
<head>
	<script src="assets/libs/jquery-1.4.min.js"></script>
	<script src="assets/libs/jquery.base64.js"></script>
	<script src="assets/libs/swfobject.js"></script>
	<script src="assets/libs/downloadify.min.js"></script>
	<style>
		blockquote, pre {
			white-space: pre-wrap;       /* css-3 */
			white-space: -moz-pre-wrap !important;  /* Mozilla, since 1999 */
			white-space: -pre-wrap;      /* Opera 4-6 */
			white-space: -o-pre-wrap;    /* Opera 7 */
			word-wrap:break-word;    /* ie */
			overflow:hidden;
		}
	</style>
</head>
<body onload="chrome.extension.getBackgroundPage().I18n.process(document);">
	<table>
		<tr>
			<td id='downurl'>Place for button.</td>
			<td i18n-content="export_downloadFile">&lt;--Click to download.</td>
		</tr>
	</table>
	<pre id="data"></pre>
	<script>
		$('#data').append(window.opener.data.data);
		$('#downurl').html('<embed src="assets/media/downurl.swf" width="30" height="30" flashvars=filename="' + window.opener.data.name + '&data=' + $.base64Encode(window.opener.data.data) + '"/>');
	</script>
</body>
</html>
